package com.hyb.hybmodulessearch.domain;
import cn.easyes.annotation.HighLight;
import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.rely.Analyzer;
import cn.easyes.annotation.rely.FieldStrategy;
import cn.easyes.annotation.rely.FieldType;
import cn.easyes.annotation.rely.IdType;
import com.ruoyi.system.api.domain.SysUser;
import lombok.Data;

import java.util.Date;


@Data
public class ArticleResponseVo {

    @IndexId(type = IdType.CUSTOMIZE)
    private Long id;


    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long userId;

    //(name = "文章标题")
    @HighLight
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_MAX_WORD)
    private String articleTitle;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String imgUrl;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String contentUrl;

    //(name = "作者用户名")
    @HighLight(fragmentSize = 1000)
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_MAX_WORD)
    private String userName;

    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String userAvatar;

    @HighLight(fragmentSize = 1000)
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_MAX_WORD)
    //(name = "作用昵称")
    private String useNickName;

    //(name = "描述")
    @HighLight(fragmentSize = 1000)
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.TEXT, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_MAX_WORD)
    private String articleDes;

    //(name = "点赞人数")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)

    private Long thumbCount;

    //(name = "评论数量")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long commenCount;


    //(name = "收藏数量")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long collectionCount;

    //(name = "踩踏人数")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long trampleCount;

    //(name = "文章热度")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private Long articleHot;

    //(name = "标签")
    @HighLight(fragmentSize = 1000)
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_MAX_WORD)
    private String label;

    //(name = "类型 0-原创/1-转载/2-翻译")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String type;

    //(name = "文章等级")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String level;

    //(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.DATE,dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;


    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String schoolRoleLabel;
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String schoolRoleCollege;
    @IndexField(strategy = FieldStrategy.NOT_EMPTY,fieldType = FieldType.KEYWORD)
    private String schoolRoleMajor;
}
